/**
 * plugins/index.ts
 *
 * Automatically included in `./src/main.ts`
 */

// Plugins
import vuetify from './vuetify'
import i18n from '../locales'
import {store} from '../store'
import router from '../router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'dayjs/locale/zh-cn';//日期和时间本地化
import 'dayjs/locale/zh-tw';//日期和时间本地化
// Types
import type { App } from 'vue'

export function registerPlugins(app: App) {
  // loadFonts() use(vuetify)
  //.use(i18n)
  app.use(i18n).use(router).use(store).use(ElementPlus, {
    locale: zhCn,
  })
  .use(vuetify)
}
